﻿@model IQueryable<YTCMS.Domain.Entities.custom>
@using YTCMS.Core;
<table id="sample-table-1" class="table table-striped table-bordered table-hover">
    <thead>
        <tr>
            <th>目的地</th>
            <th>出发日期</th>
            <th>旅行天数</th>
            <th>费用预算</th>
            <th>姓名</th>
            <th>出行人数</th>
            <th>联系方式</th>
            <th>常用邮箱</th>
            <th>旅行群体</th>
            <th>其他要求</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @{
            if (Model.Any())
            {
                foreach (var item in Model)
                {
                    <tr>
                        <td title="@item.Destination">@item.Destination.GetSubString(20)</td>
                        <td>@item.DepartTime</td>
                        <td>@item.Day</td>
                        <td>@item.Money</td>
                        <td title="@item.Name">@item.Name.GetSubString(20)</td>
                        <td>@item.Num</td>
                        <td title="@item.Contact">@item.Contact.GetSubString(20)</td>
                        <td title="@item.Email">@item.Email.GetSubString(20)</td>
                        <td>@item.Object</td>
                        <td title="@item.Remark">@item.Remark.GetSubString(20)</td>
                        <td>
                            <a class="btn btn-xs btn-danger" href="javascript:void(0)" onclick="WZTDelete('/Custom/Delete', {id:@item.Id})">
                                <i class="icon-trash bigger-120"></i>删除
                            </a>
                        </td>
                    </tr>
                }
            }

        }
    </tbody>
</table>
@Html.AjaxPager((int)ViewBag.PageSize, (int)ViewBag.TotalCount)
